package com.tuo51.manager.repository;

import com.tuo51.manager.domain.Dealer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DealerRepository extends JpaRepository<Dealer, String>, JpaSpecificationExecutor<Dealer> {

    List<Dealer> findAllByOrderByCreatedDesc();

}
